import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from '../src/utils/index'


import ELEMENT from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ELEMENT);
//  时间过滤器
Vue.filter('timmer',(item)=>{
    var obj=new Date(item)
    var y=obj.getFullYear()
    var m=(obj.getMonth()+1).toString().padStart(2,'0')
    var d=obj.getDate()
    var h=obj.getHours()
    var f=obj.getMinutes().toString().padStart(2,'0')
    var s=obj.getSeconds().toString().padStart(2,'0')
    return `${y}-${m}-${d} ${h}:${f}:${s}`
  })
Vue.prototype.$axios = axios
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
